﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NutriLeaf.Web.Model;

namespace NutriLeaf.Web.Core.Food
{
    public interface IFoodLike
    {
        void LikeFood(int FoodId, int userId, bool like, ref NutriLeafDBEntities context);

        void LikeFood(Model.Food food , User user, bool like, ref NutriLeafDBEntities context);

        void RemoveFoodLike(Model.FoodLike like, ref NutriLeafDBEntities context);

        List<Model.Food> GetFoodLikedByUser(int userId, ref NutriLeafDBEntities context);

        void UpdateFoodLike(Model.FoodLike foodLike, ref NutriLeafDBEntities context);
    }
}